
 
<?php
include("fckeditor/fckeditor.php") ;
    $hinhold=$_REQUEST["hinhold"];
	$sanid=$_GET["sanid"];
	$curPage=$_REQUEST['curPage'];
	$sql="select * from san  where SanID='$sanid'";
	$kq=mysql_query($sql);
	$n=mysql_num_rows($kq);
	if($n==0)
	{
		echo "No data";
	}
	else 
	{
		$r=mysql_fetch_array($kq);
		$sanid=$r["SanID"];
		$mota=$r["MoTa"];
		$tieude=$r["TieuDe"];
		$hinh=$r["Hinh"];
	}
?>
<table width="740" border="0" cellspacing="0" cellpadding="0">
<form method="post" action="include/san-xulyupdate.php" enctype="multipart/form-data">
  <tr>
    <td style="padding-left:80px" height="30">Mã Sân :</td>
    <td><input type="text" name="sanid" style="width:240px" disabled="disabled" value="<?php echo "$sanid"; ?>"></td>
  </tr>
  <tr>
    <td style="padding:0 1px 0 70px" height="30">Tiêu Đề:</td>
    <td><input type="text" name="tieude" style="width:240px" value="<?php echo "$tieude";?>"></td>
    </tr>
  <tr>
    <td colspan="2" style="padding:5px 0 5px 50px; width:400px;">  <?php
	$oFCKeditor = new FCKeditor('mota') ;
	$oFCKeditor->BasePath = 'fckeditor/' ;
	$oFCKeditor->Width='580px';
	$oFCKeditor->Height='300px';
	$oFCKeditor->Value = "$mota" ;
	$oFCKeditor->Create() ;
	?></td>
  </tr>

  <tr>
  	<td style="padding-left:80px" height="30">Hình:</td>
    <td><input type="file" name="hinh" style="width:240px" value="<?php echo "$hinh"; ?>"></td>
  </tr>
  
  	<td class="ketthuc" colspan="2" height="35" align="center">
    <input name="Update" type="submit" value="Update" class="button">
    <input name="" type="reset" value="Reset" class="button">  
    </td>
  </tr>
  <input type="hidden" name="sanid" value="<?php echo "$sanid"; ?>" /> 
  <input type="hidden" name="hinhold" value="<?php echo "$hinhold"; ?>" />
  <input type="hidden" name="curPage" value="<?php echo "$curPage"; ?>" />
  </form>
</table>







